package mx.com.zl0.scheduler.iterator;

import java.util.Calendar;
import java.util.Date;

public class MinutesIterator extends ScheduleIterator {
	private final int minutes;

	public MinutesIterator(int minutes) {
		this.minutes = minutes;
	}

	@Override public Date next() {
		calendar.add(Calendar.MINUTE, minutes);
		return calendar.getTime();
	}
}